package com.gdpu.liou.symphonyserver.service;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author liuyx
 */
public interface RankService {


    /**
     * @param playlistId 歌单id
     * @param consumerId 用户id
     * @param score 评分
     * @return a
     */
    boolean gradePlaylist(Long playlistId,
                          Long consumerId,
                          Integer score);


    List<Map<String,String>> selectAvgScoreOfPlaylist();


    Double selectGradeOfPlaylistOfConsumer(Long playlistId, Long consumerId);
}
